
  
@extends('layouts.admin')
    @section('xgshopym')
    <li><a href="{{URL('admin/shopym')}}"> 编辑商品</a></li>
    <li><a href="{{URL('admin/shopym/add')}}"> 增加商品</a></li>
    @endsection
    @section('xgleibie')
    <li><a href="{{url('admin/leibie')}}" >编辑类别</a></li>
    <li><a href="{{url('admin/leibie/add')}}"> 增加类别</a></li>
    @endsection
    @section('xgvip')
    <li><a href="{{url('admin/user')}}"><i class="fa fa-user"></i><span>会员管理</span></a></li>
    @endsection
    @section('xgdingdan')
    <li><a href="{{url('admin/dingdan')}}"><i class="fa fa-cube"></i><span>编辑订单</span></a></li>
    @endsection
    @section('xggonggao')
    <li><a href="{{URL('admin/gonggao')}}"> 编辑公告</a></li>
    <li><a href="{{URL('admin/gonggao/add')}}"> 增加公告</a></li>
    @endsection
    @section('page-wrapper')
        <div class="content">
            <div class="row">
                <div class="col-sm-12">
                    <h4 class="page-title">修改密码</h4>
                </div>
            </div>
            <div class="row">
                <div class="col-lg-12">
                    <div class="card-box">
                  
                        <h4 class="card-title" style="color: #009efb;cursor:pointer;" ><i class="fa fa-hand-o-left" aria-hidden="true"  style="margin-right: 3px;"></i><a onclick="javascript:history.back(-1);" >返回</a></h4>
                        <label class="col-form-label col-md-1.5"  style="color:#F00;">
                            @if(count($errors)>0)
                            @foreach($errors->all() as $error)
                            {{$error}}
                            @endforeach
                            @endif
                        </label>
                        <form action="{{url('admin/newpass')}}" method="post" onsubmit="return lbyz(this)" >
                            <div class="form-group row">
                                <label class="col-form-label col-md-1.5"  style="margin-left: 11px;"><span  class="col-form-label"  style="color:#F00;font-size: 10px;">*</span>&nbsp;&nbsp;原密码</label>
                                    <div class="col-md-3">
                                        <input type="password" class="form-control"  name="password" style="margin-left: 14px;">
                                      
                                    </div>  <span   class="col-form-label">&nbsp;&nbsp;&nbsp;&nbsp;请输入原始密码</span>
                                </div>
                                <div class="form-group row">
                                    <label class="col-form-label col-md-1.5"  style="margin-left: 11px;"><span  class="col-form-label"  style="color:#F00;font-size: 10px;">*</span>&nbsp;&nbsp;新密码</label>
                                        <div class="col-md-3">
                                            <input type="password" class="form-control"  name="newpass" style="margin-left: 14px;">
                                          
                                        </div>  <span   class="col-form-label">&nbsp;&nbsp;&nbsp;&nbsp;新密码6-20位</span>
                                    </div> 
                                    <div class="form-group row">
                                        <label class="col-form-label col-md-1.5"  style="margin-left: 11px;"><span  class="col-form-label"  style="color:#F00;font-size: 10px;">*</span>&nbsp;&nbsp;确认密码</label>
                                            <div class="col-md-3">
                                                <input type="password" class="form-control"  name="newpass_confirmation" >
                                               
                                            </div>  <span   class="col-form-label">再次输入密码</span>
                                        </div>
                                     
                            {{csrf_field()}}
                           
                            <div class="form-group row" style="margin-left: 53.5px;margin-top: 30px;">
                              <div class="col-md-1">
                                  <input type="submit" value="修改"  class="btn btn-primary" style="color: #fff;border-style: none;">
                              </div>
                              <div class="col-md-1">
                                <input type="reset" value="重置"  class="btn btn-primary" style="color: #fff;background-color:#888;border-style: none;">
                            </div>
                          </div>
                        </form>
                    </div>
                </div>
           

    <script language="javascript">
      function lbyz(fom){
        // if(fom.newpass.value==''){
        //   alert('新密码不能为空');
        //   fom.newpass.select();
        //   return false;
        //   }
        // if(fom.okpass.value==''){
        //   alert('确认密码不能为空');
        //   fom.okpass.select();
        //   return false;
        //   }
        }
      </script>
@endsection